/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 社区总数 POST /geo/area/countData */
export async function geoAreaCountDataUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/geo/area/countData', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 删除 POST /geo/area/deleteData */
export async function geoAreaDeleteDataUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaBoGeoAreaDeleteData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/geo/area/deleteData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取 POST /geo/area/getData */
export async function geoAreaGetDataUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaBoGeoAreaGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RGeoAreaVo>('/geo/area/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询 POST /geo/area/pageData */
export async function geoAreaPageDataUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaBoGeoAreaPageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoGeoAreaVo>('/geo/area/pageData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 添加 POST /geo/area/saveData */
export async function geoAreaSaveDataUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaBoGeoAreaSaveData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/geo/area/saveData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改 POST /geo/area/updateData */
export async function geoAreaUpdateDataUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaBoGeoAreaUpdateData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLong>('/geo/area/updateData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 上/下架 POST /geo/area/updateUpFlag */
export async function geoAreaUpdateUpFlagUsingPost({
  body,
  options,
}: {
  body: API.GeoAreaBoGeoAreaUpdateUpFlag;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/geo/area/updateUpFlag', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
